home *** CD-ROM | disk | FTP | other *** search
- /*
- File: DrawPart.h
-
- Contains: Interface to OSL support routines for the DrawPart
-
- Owned by: Caia Grisar
-
- Copyright: © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <2> 9/23/96 JP 1384958: Removed stuff which is now in
- SEUtils.h
- <14> 9/4/95 TJ Added Includes to Compile with out
- PC-Headers.
- <13> 7/27/95 eeh 1204615: add param to
- InstallStaticCallbacks
- <12> 5/18/95 eeh 1250424: add HandleRevert
- <11> 4/26/95 BM #1243574: added declarations for character
- from null accessor, related functions
- <10> 4/25/95 JP 1237938: Added ODRgstry.xh include for
- kODStandardPartTokenType
- <9> 2/22/95 eeh 1222901: add StandardPartToken
- <8> 2/3/95 eeh 1217393: use new ODDesc etc
- <7> 1/27/95 TJ NP: Added forward decls.
- <6> 1/25/95 eeh 1211798: move FIRSTBYTESFROMHANDLE and
- SETFIRSTBYTESOFHANDLE
- <5> 1/16/95 eeh 1211798: add FIRSTBYTESFROMHANDLE and
- SETFIRSTBYTESOFHANDLE
- <4> 11/15/94 NP 1199847-removed some object accessors and
- event handlers.
- <3> 9/29/94 RA 1189812: Mods for 68K build.
- <2> 9/23/94 RR Added forward decl of ODPart
- <1> 8/30/94 NP first checked in
- <3> 12/9/93 eeh added typeFrameProp
- <2> 12/1/93 CG Added type defs for PartProp and
- EmbededPartProp.
- <1> 11/16/93 CG first checked in
- To Do:
- */
-
- #ifndef _DRAWOBJ_
- #define _DRAWOBJ_
-
- #ifndef _PLFMDEF_
- #include "PlfmDef.h"
- #endif
-
- #ifndef SOM_ODSemanticInterface_xh
- #include "SemtIntB.xh"
- #endif
-
- //==============================================================================
- // Constants
- //==============================================================================
-
- enum
- {
- typeEmbededPartProp = 'eppr'
- ,typePartProp = 'pprp'
- ,typeFrameProp = 'frmp'
- };
-
- //==============================================================================
- // Temporary constants
- //==============================================================================
-
- #define cDrawPart 'draw'
- #define cDragPart 'drag'
- #define cClockPart 'clck'
- #define cTestPart 'test'
-
- //==============================================================================
- // Forward Declaration
- //==============================================================================
-
- class ODPart;
- class ODOSLToken;
- class ODDesc;
- class ODAppleEvent;
- class SIHelper;
-
- //==============================================================================
- // Event Handlers and Object Accessors and Coercion Handlers.
- //==============================================================================
-
-
- #define ODOBJECT_ACCESSOR_PARAMS ODPart* part, \
- DescType desiredClass, \
- ODOSLToken* container, \
- DescType containerClass, \
- DescType form, \
- ODDesc* selectionData, \
- ODOSLToken* value, \
- ODSLong refCon \
-
- static pascal ODError GetPropertyFromNULL(ODOBJECT_ACCESSOR_PARAMS);
- static pascal ODError GetPartFromNULL(ODOBJECT_ACCESSOR_PARAMS);
- static pascal ODError GetPropertyFromPart(ODOBJECT_ACCESSOR_PARAMS);
- static pascal ODError GetCharFromNULL(ODOBJECT_ACCESSOR_PARAMS);
- static pascal ODError GetWildcardFromPart(ODOBJECT_ACCESSOR_PARAMS);
- static pascal ODError GetWildcardFromList(ODOBJECT_ACCESSOR_PARAMS);
-
- #define ODEVENT_HANDLER_PARAMS ODPart* part, \
- ODAppleEvent* message, \
- ODAppleEvent* reply, \
- ODSLong handlerRefcon \
-
- static pascal ODError HandleSetData(ODEVENT_HANDLER_PARAMS);
- static pascal ODError HandleGetData(ODEVENT_HANDLER_PARAMS);
- static pascal ODError HandleRevert(ODEVENT_HANDLER_PARAMS);
- static pascal ODError HandleCreate(ODEVENT_HANDLER_PARAMS);
- static pascal ODError HandleMove(ODEVENT_HANDLER_PARAMS);
- static pascal ODError HandleMeow(ODEVENT_HANDLER_PARAMS);
-
-
- static pascal ODError CoerceList2RGB(ODPart* thisPart, AEDesc* from, DescType toType,
- ODSLong /*refcon*/, AEDesc* result);
-
- static pascal ODError CoerceDPElemToChar(ODPart* thisPart, AEDesc* from, DescType toType,
- ODSLong /*refcon*/, AEDesc* result);
-
- static pascal ODError DrawCompare(ODPart* thePart, DescType oper,
- ODOSLToken* obj1, ODOSLToken* obj2, ODBoolean* result,
- ODSLong refCon);
-
- static pascal ODError DrawCount(ODPart* thePart, DescType desiredType,
- DescType containerClass, ODOSLToken* container,
- ODSLong* result, ODSLong refCon);
- static pascal ODError DrawDisposeToken(ODPart* thePart, ODOSLToken* unneededToken,
- ODSLong refCon);
-
- void InstallStaticCallbacks( ODSemanticInterface* semtIntf,
- SIHelper* helper, ODSession* session );
- ODBoolean CompareDPElemsAndChars( AEDesc* aDesc, AEDesc* bDesc );
-
- #endif // _DRAWOBJ_
-